package poc.spring.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import poc.scc.core.Usuario;
import poc.spring.services.IServiceUsuario;

@Controller
@RequestMapping(value = "usuario")
public class UsuarioController {
	
	@Autowired
	private IServiceUsuario serviceUsuario;
	
	@RequestMapping(value = "create", method = RequestMethod.POST)
	public String create(Usuario usuario) {
		serviceUsuario.execute();
		System.out.println("newww");
		return "list";
	}

}
